package proxy.dynamicproxy.jdkproxy;

import java.lang.reflect.Method;

/**
 * @author zhuohb
 */
public class JDKProxyTest {

    public static void main(String[] args) {
        try {

            Object obj = new JDKMeipo().getInstance(new Girl());
            Method method = obj.getClass().getMethod("findLove", null);
            method.invoke(obj);

        } catch (Exception e) {
            e.printStackTrace();
        }


    }

}
